package com.baizhi.student.controller;


import com.baizhi.student.entity.Student;
import com.baizhi.student.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhenggang
 * @since 2022-03-15
 */
@RestController
@RequestMapping("/student")
public class StudentController {
    @Autowired
    private IStudentService ss;
    @GetMapping("/selectAll")
    public List<Student> selectAll(){
        return ss.list();
    }
}

